
declare global {
 
    interface Uni {
        /**api接口域名地址。 */
        hostUrl: string,
        /**静态图片地址 */
        imgHost: string,
        
    }
    export namespace MyApp {
        interface userInfo  {
            id:string|number,
            "auth": {
                "auth_type": number,
                "auth_text": string,
                "auth_state": boolean,
                "auth_state_text": string
            },
            "company_name": string,
            "realname": string,
            "mobile": string
        }
        /**后台请求的数据结构体 */
        interface reponseData {
            /**
             * 响应码
             * -1 未登录
             * 0 正常响应
             * 1 处理错误
             */
            "code": -1 | 0 | 1,
            "msg": string,
            "error": string,
            "data": any
        }
        interface ReposeDataListType extends reponseData {
            data:{
                banner:{
                    "id": string,
                    "title": string,
                    "link": string,
                    "image": string,
                    "titlepic": {
                        "uid": string,
                        "name": string,
                        "value": string,
                        "status": string,
                        "url": string
                    }[]
                }
                "category": {
                    "id": string,
                    "title": string,
                }[],
                /**总条数 */
                count: number,
                /**列表数据 */
                list: any[],
            }
        }
    }
}


export { }



